package com.happy3w.cmds.refactor.config;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Builder
@AllArgsConstructor
public class StartCpiConfig implements ChangePackageItemConfig {
    private String from;
    private String to;

    @Override
    public String apply(String className) {
        if (className.startsWith(from)) {
            return className.replace(from, to);
        }
        return null;
    }
}
